<html><head>
	    <meta charset="utf-8">
    <title>编辑事件</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="shortcut icon" href="__PUBLIC__/Admin/images/favicon1.ico">
    <!--Basic Styles-->
    <link href="__PUBLIC__/Admin/style/bootstrap.css" rel="stylesheet">
    <link href="__PUBLIC__/Admin/style/font-awesome.css" rel="stylesheet">
    <link href="__PUBLIC__/Admin/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__PUBLIC__/Admin/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="__PUBLIC__/Admin/style/demo.css" rel="stylesheet">
    <link href="__PUBLIC__/Admin/style/typicons.css" rel="stylesheet">
    <link href="__PUBLIC__/Tools/um/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">


    <script src="__PUBLIC__/Admin/style/jquery_002.js"></script>
    <script src="__PUBLIC__/Admin/style/jquery.js"></script>
    <script src="__PUBLIC__/Admin/style/bootstrap.js"></script>


    <!--<script type="text/javascript" src="__PUBLIC__/Tools/um/third-party/jquery.min.js"></script>-->
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/Tools/um/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/Tools/um/umeditor.min.js"></script>
    <!--<script type="text/javascript" src="__PUBLIC__/Tools/um/lang/zh-cn/zh-cn.js"></script>-->
</head>
<body>
<!-- 头部 -->
<include file="Common/header"/>
<!-- /头部 -->
<div class="main-container container-fluid">
    <div class="page-container">
        <!-- Page 侧边栏 -->
        <include file="Common/sidebar"/>
        <!-- /Page Sidebar -->
        <!-- Page Content -->
        <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                           <a href="__MODULE__/Develops/developsList">
                               公司发展事件
                           </a>
                        </li>
                        <li class="active">
                            编辑事件
                        </li>
                    </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-header bordered-bottom bordered-blue">
                <span class="widget-caption">添加事件</span>
            </div>
            <div class="widget-body">
                <div id="horizontal-form">
                    <form class="form-horizontal" role="form" action="" method="post" enctype ="multipart/form-data" id="newsAdd">
                        <input type="hidden" name="id" value="{$develop.id}">
                        <div class="form-group">
                            <label for="title" class="col-sm-2 control-label no-padding-right">事件概括</label>
                            <div class="col-sm-6">
                                <textarea class="form-control" id="title" placeholder="长度不超过50" name="title" style="resize: none;">{$develop.title}</textarea>
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>

                        <div class="form-group">
                            <label for="sort" class="col-sm-2 control-label no-padding-right">发生时间</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="time" placeholder="格式:xxxx-xx-xx" name="time"  type="text" value="{$develop.time|date='Y-m-d',###}">
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>

                        <div class="form-group">
                            <label for="sort" class="col-sm-2 control-label no-padding-right">排序</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="sort" placeholder="排序(数字),默认排序越小越靠前" name="sort"  type="text" value="{$develop.sort}">
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>


                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-default">
                                    保存信息
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>


    <!--Beyond Scripts-->
    <script src="__PUBLIC__/Admin/style/beyond.js"></script>
    <!--引入layer.js-->
    <script src="__PUBLIC__/Admin/layer/layer.js"></script>
</body>
</html>


<script>
    $(document).ready(function () {
        $('form').submit(function (event) {
            var id =$('input[name=id]').val();
            var title = $('#title').val();
            var time = $('input[name=time]').val();
            var sort = $('input[name=sort]').val();
            $.post('__MODULE__/Develops/developsModify', {id : id,title : title, time : time, sort : sort}, function(result){
                if (result != 'true') {
                    layer.msg(result);
                } else {
                    window.location.href = '__MODULE__/Develops/developsList';
                }
            });
            event.preventDefault();
            return false;
        });
     });
</script>

